import com.typesafe.sbt.SbtMultiJvm.multiJvmSettings
import com.typesafe.sbt.SbtMultiJvm.MultiJvmKeys.MultiJvm

name := "akkademy-db"
organization := "com.akkademy-db"
version := "0.0.1-SNAPSHOT"
scalaVersion := "2.13.1"
val AkkaVersion = "2.6.9"

lazy val `akkademy-db` = project.in(file(".")).settings(multiJvmSettings: _*).settings(
  Compile / scalacOptions ++= Seq("-deprecation", "-feature", "-unchecked", "-Xlog-reflective-calls", "-Xlint"),
  Compile / javacOptions ++= Seq("-Xlint:unchecked", "-Xlint:deprecation"),
  run / javaOptions ++= Seq("-Xms128m", "-Xmx1024m", "-Djava.library.path=./target/native"),
  libraryDependencies ++= Seq(
    "com.typesafe.akka" %% "akka-actor-typed" % AkkaVersion,
    "com.typesafe.akka" %% "akka-actor-testkit-typed" % AkkaVersion % Test,
    "org.scalatest" %% "scalatest" % "3.1.1" % Test,
    "ch.qos.logback" % "logback-classic" % "1.2.3",
    "com.typesafe.akka" %% "akka-remote" % AkkaVersion,
    "io.aeron" % "aeron-driver" % "1.27.0",
    "io.aeron" % "aeron-client" % "1.27.0",
    "com.typesafe.akka" %% "akka-cluster-typed" % AkkaVersion,
    "com.typesafe.akka" %% "akka-serialization-jackson" % AkkaVersion,
    "com.typesafe.akka" %% "akka-stream" % AkkaVersion
  )
).configs(MultiJvm)

